<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Irrlicht 3D Engine: irr::video::IGPUProgrammingServices Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Irrlicht 3D Engine
   
   </div>
   
  </td>
  
  
  
   
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
   
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classirr_1_1video_1_1_i_g_p_u_programming_services.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">irr::video::IGPUProgrammingServices Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="irr::video::IGPUProgrammingServices" -->
<p>Interface making it possible to create and use programs running on the GPU.  
 <a href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>&gt;</code></p>

<p><a href="classirr_1_1video_1_1_i_g_p_u_programming_services-members.html">List of all members.</a></p>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li>virtual <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a09d143ea5c55840c15ebcb84e8539bc0">~IGPUProgrammingServices</a> ()
<dl class="el"><dd class="mdescRight">Destructor.  <a href="#a09d143ea5c55840c15ebcb84e8539bc0"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a4a8d3b727ee9223d8baa353b82da0478">addHighLevelShaderMaterial</a> (const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderEntryPointName, <a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a> vsCompileTarget, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderEntryPointName, <a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a> psCompileTarget, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *geometryShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *geometryShaderEntryPointName=&quot;main&quot;, E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> inType=scene::EPT_TRIANGLES, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> outType=scene::EPT_TRIANGLE_STRIP, <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> verticesOut=0, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0, <a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a> shadingLang=EGSL_DEFAULT)=0
<dl class="el"><dd class="mdescRight">Adds a new high-level shading material renderer to the VideoDriver.  <a href="#a4a8d3b727ee9223d8baa353b82da0478"></a><br/></dl><li><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#aa65337bb19777dd025ff02f1953277b6">addHighLevelShaderMaterial</a> (const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderEntryPointName=&quot;main&quot;, E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderProgram=0, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderEntryPointName=&quot;main&quot;, E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0, <a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a> shadingLang=EGSL_DEFAULT)
<dl class="el"><dd class="mdescRight">convenience function for use without geometry shaders  <a href="#aa65337bb19777dd025ff02f1953277b6"></a><br/></dl><li><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#aeeecb11a1cab75912585b74e5329a593">addHighLevelShaderMaterial</a> (const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderProgram=0, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0)
<dl class="el"><dd class="mdescRight">convenience function for use with many defaults, without geometry shader  <a href="#aeeecb11a1cab75912585b74e5329a593"></a><br/></dl><li><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a53869b9475eecf48305ee97b72d458a7">addHighLevelShaderMaterial</a> (const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderProgram=0, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *geometryShaderProgram=0, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> inType=scene::EPT_TRIANGLES, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> outType=scene::EPT_TRIANGLE_STRIP, <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> verticesOut=0, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0)
<dl class="el"><dd class="mdescRight">convenience function for use with many defaults, with geometry shader  <a href="#a53869b9475eecf48305ee97b72d458a7"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#aeca8039e37e386b1e203cfa38338b848">addHighLevelShaderMaterialFromFiles</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;vertexShaderProgramFileName, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderEntryPointName, <a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a> vsCompileTarget, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;pixelShaderProgramFileName, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderEntryPointName, <a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a> psCompileTarget, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;geometryShaderProgramFileName, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *geometryShaderEntryPointName=&quot;main&quot;, E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> inType=scene::EPT_TRIANGLES, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> outType=scene::EPT_TRIANGLE_STRIP, <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> verticesOut=0, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0, <a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a> shadingLang=EGSL_DEFAULT)=0
<dl class="el"><dd class="mdescRight">Like <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293" title="Adds a new ASM shader material renderer to the VideoDriver.">IGPUProgrammingServices::addShaderMaterial()</a>, but loads from files.  <a href="#aeca8039e37e386b1e203cfa38338b848"></a><br/></dl><li><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a2e6abff7d3e976d65955aae13df5e500">addHighLevelShaderMaterialFromFiles</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;vertexShaderProgramFileName, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderEntryPointName=&quot;main&quot;, E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;pixelShaderProgramFileName=&quot;&quot;, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderEntryPointName=&quot;main&quot;, E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0, <a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a> shadingLang=EGSL_DEFAULT)
<dl class="el"><dd class="mdescRight">convenience function for use without geometry shaders  <a href="#a2e6abff7d3e976d65955aae13df5e500"></a><br/></dl><li><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a6ad72d2498a05669231531d54d849655">addHighLevelShaderMaterialFromFiles</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;vertexShaderProgramFileName, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;pixelShaderProgramFileName=&quot;&quot;, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0)
<dl class="el"><dd class="mdescRight">convenience function for use with many defaults, without geometry shader  <a href="#a6ad72d2498a05669231531d54d849655"></a><br/></dl><li><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af3c8b043db5b9b63dcd008c59fb9686b">addHighLevelShaderMaterialFromFiles</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;vertexShaderProgramFileName, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;pixelShaderProgramFileName=&quot;&quot;, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;geometryShaderProgramFileName=&quot;&quot;, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> inType=scene::EPT_TRIANGLES, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> outType=scene::EPT_TRIANGLE_STRIP, <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> verticesOut=0, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0)
<dl class="el"><dd class="mdescRight">convenience function for use with many defaults, with geometry shader  <a href="#af3c8b043db5b9b63dcd008c59fb9686b"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a8bd3c5d07209f90958d8e83c81dd1128">addHighLevelShaderMaterialFromFiles</a> (<a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *vertexShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderEntryPointName, <a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a> vsCompileTarget, <a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *pixelShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderEntryPointName, <a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a> psCompileTarget, <a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *geometryShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *geometryShaderEntryPointName=&quot;main&quot;, E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> inType=scene::EPT_TRIANGLES, <a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a> outType=scene::EPT_TRIANGLE_STRIP, <a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a> verticesOut=0, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0, <a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a> shadingLang=EGSL_DEFAULT)=0
<dl class="el"><dd class="mdescRight">Like <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293" title="Adds a new ASM shader material renderer to the VideoDriver.">IGPUProgrammingServices::addShaderMaterial()</a>, but loads from files.  <a href="#a8bd3c5d07209f90958d8e83c81dd1128"></a><br/></dl><li><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#ab50a1187abec7b8b4e6a0593053daaeb">addHighLevelShaderMaterialFromFiles</a> (<a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *vertexShaderProgram, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderEntryPointName=&quot;main&quot;, E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, <a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *pixelShaderProgram=0, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderEntryPointName=&quot;main&quot;, E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0, <a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a> shadingLang=EGSL_DEFAULT)
<dl class="el"><dd class="mdescRight">convenience function for use without geometry shaders  <a href="#ab50a1187abec7b8b4e6a0593053daaeb"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293">addShaderMaterial</a> (const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *vertexShaderProgram=0, const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *pixelShaderProgram=0, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0)=0
<dl class="el"><dd class="mdescRight">Adds a new ASM shader material renderer to the VideoDriver.  <a href="#af7c7515773d4be33e1c66b8e3b65c293"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a3d525d13fe863dc4f06af01eb44ea9e6">addShaderMaterialFromFiles</a> (<a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *vertexShaderProgram, <a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *pixelShaderProgram, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0)=0
<dl class="el"><dd class="mdescRight">Like <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293" title="Adds a new ASM shader material renderer to the VideoDriver.">IGPUProgrammingServices::addShaderMaterial()</a>, but loads from files.  <a href="#a3d525d13fe863dc4f06af01eb44ea9e6"></a><br/></dl><li>virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a46042ab1425d6c20f5d148febd7d9f00">addShaderMaterialFromFiles</a> (const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;vertexShaderProgramFileName, const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;pixelShaderProgramFileName, <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *callback=0, <a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a> baseMaterial=video::EMT_SOLID, <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> userData=0)=0
<dl class="el"><dd class="mdescRight">Like <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293" title="Adds a new ASM shader material renderer to the VideoDriver.">IGPUProgrammingServices::addShaderMaterial()</a>, but loads from files.  <a href="#a46042ab1425d6c20f5d148febd7d9f00"></a><br/></dl></ul>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Interface making it possible to create and use programs running on the GPU. </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00038">38</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a09d143ea5c55840c15ebcb84e8539bc0"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::~IGPUProgrammingServices" ref="a09d143ea5c55840c15ebcb84e8539bc0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual irr::video::IGPUProgrammingServices::~IGPUProgrammingServices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00043">43</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4a8d3b727ee9223d8baa353b82da0478"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterial" ref="a4a8d3b727ee9223d8baa353b82da0478" args="(const c8 *vertexShaderProgram, const c8 *vertexShaderEntryPointName, E_VERTEX_SHADER_TYPE vsCompileTarget, const c8 *pixelShaderProgram, const c8 *pixelShaderEntryPointName, E_PIXEL_SHADER_TYPE psCompileTarget, const c8 *geometryShaderProgram, const c8 *geometryShaderEntryPointName=&quot;main&quot;, E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterial </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderEntryPointName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>vsCompileTarget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderEntryPointName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>psCompileTarget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>geometryShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>geometryShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a3aad41cbdf894faaeeadf465592af18f">E_GEOMETRY_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>gsCompileTarget</em> = <code>EGST_GS_4_0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>inType</em> = <code>scene::EPT_TRIANGLES</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>outType</em> = <code>scene::EPT_TRIANGLE_STRIP</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&#160;</td>
          <td class="paramname"><em>verticesOut</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a>&#160;</td>
          <td class="paramname"><em>shadingLang</em> = <code>EGSL_DEFAULT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a new high-level shading material renderer to the VideoDriver. </p>
<p>Currently only HLSL/D3D9 and GLSL/OpenGL are supported. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vertexShaderProgram</td><td>String containing the source of the vertex shader program. This can be 0 if no vertex program shall be used. </td></tr>
    <tr><td class="paramname">vertexShaderEntryPointName</td><td>Name of the entry function of the vertexShaderProgram (p.e. "main") </td></tr>
    <tr><td class="paramname">vsCompileTarget</td><td>Vertex shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">pixelShaderProgram</td><td>String containing the source of the pixel shader program. This can be 0 if no pixel shader shall be used. </td></tr>
    <tr><td class="paramname">pixelShaderEntryPointName</td><td>Entry name of the function of the pixelShaderProgram (p.e. "main") </td></tr>
    <tr><td class="paramname">psCompileTarget</td><td>Pixel shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">geometryShaderProgram</td><td>String containing the source of the geometry shader program. This can be 0 if no geometry shader shall be used. </td></tr>
    <tr><td class="paramname">geometryShaderEntryPointName</td><td>Entry name of the function of the geometryShaderProgram (p.e. "main") </td></tr>
    <tr><td class="paramname">gsCompileTarget</td><td>Geometry shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">inType</td><td>Type of vertices passed to geometry shader </td></tr>
    <tr><td class="paramname">outType</td><td>Type of vertices created by geometry shader </td></tr>
    <tr><td class="paramname">verticesOut</td><td>Maximal number of vertices created by geometry shader. If 0, maximal number supported is assumed. </td></tr>
    <tr><td class="paramname">callback</td><td>Pointer to an implementation of <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html" title="Interface making it possible to set constants for gpu programs every frame.">IShaderConstantSetCallBack</a> in which you can set the needed vertex, pixel, and geometry shader program constants. Set this to 0 if you don't need this. </td></tr>
    <tr><td class="paramname">baseMaterial</td><td>Base material which renderstates will be used to shade the material. </td></tr>
    <tr><td class="paramname">userData</td><td>a user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same callback method for multiple materials and distinguish between them during the call. </td></tr>
    <tr><td class="paramname">shaderLang</td><td>a type of shading language used in current shader. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of the material type which can be set in <a class="el" href="classirr_1_1video_1_1_s_material.html#a8cb63ab4b49ae1c61fbca8353e6b2f8a" title="Type of the material. Specifies how everything is blended together.">SMaterial::MaterialType</a> to use the renderer. -1 is returned if an error occured, e.g. if a shader program could not be compiled or a compile target is not reachable. The error strings are then printed to the error log and can be catched with a custom event receiver. </dd></dl>

<p>Referenced by <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00106">addHighLevelShaderMaterial()</a>.</p>

</div>
</div>
<a class="anchor" id="aa65337bb19777dd025ff02f1953277b6"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterial" ref="aa65337bb19777dd025ff02f1953277b6" args="(const c8 *vertexShaderProgram, const c8 *vertexShaderEntryPointName=&quot;main&quot;, E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, const c8 *pixelShaderProgram=0, const c8 *pixelShaderEntryPointName=&quot;main&quot;, E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterial </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>vsCompileTarget</em> = <code>EVST_VS_1_1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderProgram</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>psCompileTarget</em> = <code>EPST_PS_1_1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a>&#160;</td>
          <td class="paramname"><em>shadingLang</em> = <code>EGSL_DEFAULT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>convenience function for use without geometry shaders </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00106">106</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>

<p>References <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a4a8d3b727ee9223d8baa353b82da0478">addHighLevelShaderMaterial()</a>, <a class="el" href="_e_shader_types_8h_source.html#l00074">irr::video::EGST_GS_4_0</a>, <a class="el" href="_e_primitive_types_8h_source.html#l00030">irr::scene::EPT_TRIANGLE_STRIP</a>, and <a class="el" href="_e_primitive_types_8h_source.html#l00037">irr::scene::EPT_TRIANGLES</a>.</p>

</div>
</div>
<a class="anchor" id="aeeecb11a1cab75912585b74e5329a593"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterial" ref="aeeecb11a1cab75912585b74e5329a593" args="(const c8 *vertexShaderProgram, const c8 *pixelShaderProgram=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterial </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderProgram</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>convenience function for use with many defaults, without geometry shader </p>
<p>All shader names are set to "main" and compile targets are shader type 1.1. </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00131">131</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>

<p>References <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a4a8d3b727ee9223d8baa353b82da0478">addHighLevelShaderMaterial()</a>, <a class="el" href="_e_shader_types_8h_source.html#l00074">irr::video::EGST_GS_4_0</a>, <a class="el" href="_e_shader_types_8h_source.html#l00040">irr::video::EPST_PS_1_1</a>, <a class="el" href="_e_primitive_types_8h_source.html#l00030">irr::scene::EPT_TRIANGLE_STRIP</a>, <a class="el" href="_e_primitive_types_8h_source.html#l00037">irr::scene::EPT_TRIANGLES</a>, and <a class="el" href="_e_shader_types_8h_source.html#l00014">irr::video::EVST_VS_1_1</a>.</p>

</div>
</div>
<a class="anchor" id="a53869b9475eecf48305ee97b72d458a7"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterial" ref="a53869b9475eecf48305ee97b72d458a7" args="(const c8 *vertexShaderProgram, const c8 *pixelShaderProgram=0, const c8 *geometryShaderProgram=0, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterial </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderProgram</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>geometryShaderProgram</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>inType</em> = <code>scene::EPT_TRIANGLES</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>outType</em> = <code>scene::EPT_TRIANGLE_STRIP</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&#160;</td>
          <td class="paramname"><em>verticesOut</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>convenience function for use with many defaults, with geometry shader </p>
<p>All shader names are set to "main" and compile targets are shader type 1.1 and geometry shader 4.0. </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00151">151</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>

<p>References <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#a4a8d3b727ee9223d8baa353b82da0478">addHighLevelShaderMaterial()</a>, <a class="el" href="_e_shader_types_8h_source.html#l00074">irr::video::EGST_GS_4_0</a>, <a class="el" href="_e_shader_types_8h_source.html#l00040">irr::video::EPST_PS_1_1</a>, and <a class="el" href="_e_shader_types_8h_source.html#l00014">irr::video::EVST_VS_1_1</a>.</p>

</div>
</div>
<a class="anchor" id="aeca8039e37e386b1e203cfa38338b848"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles" ref="aeca8039e37e386b1e203cfa38338b848" args="(const io::path &amp;vertexShaderProgramFileName, const c8 *vertexShaderEntryPointName, E_VERTEX_SHADER_TYPE vsCompileTarget, const io::path &amp;pixelShaderProgramFileName, const c8 *pixelShaderEntryPointName, E_PIXEL_SHADER_TYPE psCompileTarget, const io::path &amp;geometryShaderProgramFileName, const c8 *geometryShaderEntryPointName=&quot;main&quot;, E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>vertexShaderProgramFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderEntryPointName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>vsCompileTarget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>pixelShaderProgramFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderEntryPointName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>psCompileTarget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>geometryShaderProgramFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>geometryShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a3aad41cbdf894faaeeadf465592af18f">E_GEOMETRY_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>gsCompileTarget</em> = <code>EGST_GS_4_0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>inType</em> = <code>scene::EPT_TRIANGLES</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>outType</em> = <code>scene::EPT_TRIANGLE_STRIP</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&#160;</td>
          <td class="paramname"><em>verticesOut</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a>&#160;</td>
          <td class="paramname"><em>shadingLang</em> = <code>EGSL_DEFAULT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Like <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293" title="Adds a new ASM shader material renderer to the VideoDriver.">IGPUProgrammingServices::addShaderMaterial()</a>, but loads from files. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vertexShaderProgramFileName</td><td>Text file containing the source of the vertex shader program. Set to empty string if no vertex shader shall be created. </td></tr>
    <tr><td class="paramname">vertexShaderEntryPointName</td><td>Name of the entry function of the vertexShaderProgram (p.e. "main") </td></tr>
    <tr><td class="paramname">vsCompileTarget</td><td>Vertex shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">pixelShaderProgramFileName</td><td>Text file containing the source of the pixel shader program. Set to empty string if no pixel shader shall be created. </td></tr>
    <tr><td class="paramname">pixelShaderEntryPointName</td><td>Entry name of the function of the pixelShaderProgram (p.e. "main") </td></tr>
    <tr><td class="paramname">psCompileTarget</td><td>Pixel shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">geometryShaderProgramFileName</td><td>Name of the source of the geometry shader program. Set to empty string if no geometry shader shall be created. </td></tr>
    <tr><td class="paramname">geometryShaderEntryPointName</td><td>Entry name of the function of the geometryShaderProgram (p.e. "main") </td></tr>
    <tr><td class="paramname">gsCompileTarget</td><td>Geometry shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">inType</td><td>Type of vertices passed to geometry shader </td></tr>
    <tr><td class="paramname">outType</td><td>Type of vertices created by geometry shader </td></tr>
    <tr><td class="paramname">verticesOut</td><td>Maximal number of vertices created by geometry shader. If 0, maximal number supported is assumed. </td></tr>
    <tr><td class="paramname">callback</td><td>Pointer to an implementation of <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html" title="Interface making it possible to set constants for gpu programs every frame.">IShaderConstantSetCallBack</a> in which you can set the needed vertex, pixel, and geometry shader program constants. Set this to 0 if you don't need this. </td></tr>
    <tr><td class="paramname">baseMaterial</td><td>Base material which renderstates will be used to shade the material. </td></tr>
    <tr><td class="paramname">userData</td><td>a user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same callback method for multiple materials and distinguish between them during the call. </td></tr>
    <tr><td class="paramname">shaderLang</td><td>a type of shading language used in current shader. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of the material type which can be set in <a class="el" href="classirr_1_1video_1_1_s_material.html#a8cb63ab4b49ae1c61fbca8353e6b2f8a" title="Type of the material. Specifies how everything is blended together.">SMaterial::MaterialType</a> to use the renderer. -1 is returned if an error occured, e.g. if a shader program could not be compiled or a compile target is not reachable. The error strings are then printed to the error log and can be catched with a custom event receiver. </dd></dl>

<p>Referenced by <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00233">addHighLevelShaderMaterialFromFiles()</a>.</p>

</div>
</div>
<a class="anchor" id="a2e6abff7d3e976d65955aae13df5e500"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles" ref="a2e6abff7d3e976d65955aae13df5e500" args="(const io::path &amp;vertexShaderProgramFileName, const c8 *vertexShaderEntryPointName=&quot;main&quot;, E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, const io::path &amp;pixelShaderProgramFileName=&quot;&quot;, const c8 *pixelShaderEntryPointName=&quot;main&quot;, E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>vertexShaderProgramFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>vsCompileTarget</em> = <code>EVST_VS_1_1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>pixelShaderProgramFileName</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>psCompileTarget</em> = <code>EPST_PS_1_1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a>&#160;</td>
          <td class="paramname"><em>shadingLang</em> = <code>EGSL_DEFAULT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>convenience function for use without geometry shaders </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00233">233</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>

<p>References <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#aeca8039e37e386b1e203cfa38338b848">addHighLevelShaderMaterialFromFiles()</a>, <a class="el" href="_e_shader_types_8h_source.html#l00074">irr::video::EGST_GS_4_0</a>, <a class="el" href="_e_primitive_types_8h_source.html#l00030">irr::scene::EPT_TRIANGLE_STRIP</a>, and <a class="el" href="_e_primitive_types_8h_source.html#l00037">irr::scene::EPT_TRIANGLES</a>.</p>

</div>
</div>
<a class="anchor" id="a6ad72d2498a05669231531d54d849655"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles" ref="a6ad72d2498a05669231531d54d849655" args="(const io::path &amp;vertexShaderProgramFileName, const io::path &amp;pixelShaderProgramFileName=&quot;&quot;, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>vertexShaderProgramFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>pixelShaderProgramFileName</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>convenience function for use with many defaults, without geometry shader </p>
<p>All shader names are set to "main" and compile targets are shader type 1.1. </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00258">258</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>

<p>References <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#aeca8039e37e386b1e203cfa38338b848">addHighLevelShaderMaterialFromFiles()</a>, <a class="el" href="_e_shader_types_8h_source.html#l00074">irr::video::EGST_GS_4_0</a>, <a class="el" href="_e_shader_types_8h_source.html#l00040">irr::video::EPST_PS_1_1</a>, <a class="el" href="_e_primitive_types_8h_source.html#l00030">irr::scene::EPT_TRIANGLE_STRIP</a>, <a class="el" href="_e_primitive_types_8h_source.html#l00037">irr::scene::EPT_TRIANGLES</a>, and <a class="el" href="_e_shader_types_8h_source.html#l00014">irr::video::EVST_VS_1_1</a>.</p>

</div>
</div>
<a class="anchor" id="af3c8b043db5b9b63dcd008c59fb9686b"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles" ref="af3c8b043db5b9b63dcd008c59fb9686b" args="(const io::path &amp;vertexShaderProgramFileName, const io::path &amp;pixelShaderProgramFileName=&quot;&quot;, const io::path &amp;geometryShaderProgramFileName=&quot;&quot;, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>vertexShaderProgramFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>pixelShaderProgramFileName</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>geometryShaderProgramFileName</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>inType</em> = <code>scene::EPT_TRIANGLES</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>outType</em> = <code>scene::EPT_TRIANGLE_STRIP</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&#160;</td>
          <td class="paramname"><em>verticesOut</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>convenience function for use with many defaults, with geometry shader </p>
<p>All shader names are set to "main" and compile targets are shader type 1.1 and geometry shader 4.0. </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00278">278</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>

<p>References <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#aeca8039e37e386b1e203cfa38338b848">addHighLevelShaderMaterialFromFiles()</a>, <a class="el" href="_e_shader_types_8h_source.html#l00074">irr::video::EGST_GS_4_0</a>, <a class="el" href="_e_shader_types_8h_source.html#l00040">irr::video::EPST_PS_1_1</a>, and <a class="el" href="_e_shader_types_8h_source.html#l00014">irr::video::EVST_VS_1_1</a>.</p>

</div>
</div>
<a class="anchor" id="a8bd3c5d07209f90958d8e83c81dd1128"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles" ref="a8bd3c5d07209f90958d8e83c81dd1128" args="(io::IReadFile *vertexShaderProgram, const c8 *vertexShaderEntryPointName, E_VERTEX_SHADER_TYPE vsCompileTarget, io::IReadFile *pixelShaderProgram, const c8 *pixelShaderEntryPointName, E_PIXEL_SHADER_TYPE psCompileTarget, io::IReadFile *geometryShaderProgram, const c8 *geometryShaderEntryPointName=&quot;main&quot;, E_GEOMETRY_SHADER_TYPE gsCompileTarget=EGST_GS_4_0, scene::E_PRIMITIVE_TYPE inType=scene::EPT_TRIANGLES, scene::E_PRIMITIVE_TYPE outType=scene::EPT_TRIANGLE_STRIP, u32 verticesOut=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderEntryPointName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>vsCompileTarget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderEntryPointName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>psCompileTarget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *&#160;</td>
          <td class="paramname"><em>geometryShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>geometryShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a3aad41cbdf894faaeeadf465592af18f">E_GEOMETRY_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>gsCompileTarget</em> = <code>EGST_GS_4_0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>inType</em> = <code>scene::EPT_TRIANGLES</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1scene.html#a5d7de82f2169761194b2f44d95cdc1dc">scene::E_PRIMITIVE_TYPE</a>&#160;</td>
          <td class="paramname"><em>outType</em> = <code>scene::EPT_TRIANGLE_STRIP</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#a0416a53257075833e7002efd0a18e804">u32</a>&#160;</td>
          <td class="paramname"><em>verticesOut</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a>&#160;</td>
          <td class="paramname"><em>shadingLang</em> = <code>EGSL_DEFAULT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Like <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293" title="Adds a new ASM shader material renderer to the VideoDriver.">IGPUProgrammingServices::addShaderMaterial()</a>, but loads from files. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vertexShaderProgram</td><td>Text file handle containing the source of the vertex shader program. Set to 0 if no vertex shader shall be created. </td></tr>
    <tr><td class="paramname">vertexShaderEntryPointName</td><td>Name of the entry function of the vertexShaderProgram </td></tr>
    <tr><td class="paramname">vsCompileTarget</td><td>Vertex shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">pixelShaderProgram</td><td>Text file handle containing the source of the pixel shader program. Set to 0 if no pixel shader shall be created. </td></tr>
    <tr><td class="paramname">pixelShaderEntryPointName</td><td>Entry name of the function of the pixelShaderProgram (p.e. "main") </td></tr>
    <tr><td class="paramname">psCompileTarget</td><td>Pixel shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">geometryShaderProgram</td><td>Text file handle containing the source of the geometry shader program. Set to 0 if no geometry shader shall be created. </td></tr>
    <tr><td class="paramname">geometryShaderEntryPointName</td><td>Entry name of the function of the geometryShaderProgram (p.e. "main") </td></tr>
    <tr><td class="paramname">gsCompileTarget</td><td>Geometry shader version the high level shader shall be compiled to. </td></tr>
    <tr><td class="paramname">inType</td><td>Type of vertices passed to geometry shader </td></tr>
    <tr><td class="paramname">outType</td><td>Type of vertices created by geometry shader </td></tr>
    <tr><td class="paramname">verticesOut</td><td>Maximal number of vertices created by geometry shader. If 0, maximal number supported is assumed. </td></tr>
    <tr><td class="paramname">callback</td><td>Pointer to an implementation of <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html" title="Interface making it possible to set constants for gpu programs every frame.">IShaderConstantSetCallBack</a> in which you can set the needed vertex and pixel shader program constants. Set this to 0 if you don't need this. </td></tr>
    <tr><td class="paramname">baseMaterial</td><td>Base material which renderstates will be used to shade the material. </td></tr>
    <tr><td class="paramname">userData</td><td>a user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same callback method for multiple materials and distinguish between them during the call. </td></tr>
    <tr><td class="paramname">shaderLang</td><td>a type of shading language used in current shader. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of the material type which can be set in <a class="el" href="classirr_1_1video_1_1_s_material.html#a8cb63ab4b49ae1c61fbca8353e6b2f8a" title="Type of the material. Specifies how everything is blended together.">SMaterial::MaterialType</a> to use the renderer. -1 is returned if an error occured, e.g. if a shader program could not be compiled or a compile target is not reachable. The error strings are then printed to the error log and can be catched with a custom event receiver. </dd></dl>

</div>
</div>
<a class="anchor" id="ab50a1187abec7b8b4e6a0593053daaeb"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles" ref="ab50a1187abec7b8b4e6a0593053daaeb" args="(io::IReadFile *vertexShaderProgram, const c8 *vertexShaderEntryPointName=&quot;main&quot;, E_VERTEX_SHADER_TYPE vsCompileTarget=EVST_VS_1_1, io::IReadFile *pixelShaderProgram=0, const c8 *pixelShaderEntryPointName=&quot;main&quot;, E_PIXEL_SHADER_TYPE psCompileTarget=EPST_PS_1_1, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0, E_GPU_SHADING_LANGUAGE shadingLang=EGSL_DEFAULT)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addHighLevelShaderMaterialFromFiles </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a9decae50d4dc2455e7b009f5c71b24f9">E_VERTEX_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>vsCompileTarget</em> = <code>EVST_VS_1_1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderProgram</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderEntryPointName</em> = <code>&quot;main&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a07fb77e9aec681402ad376f7ef9b724c">E_PIXEL_SHADER_TYPE</a>&#160;</td>
          <td class="paramname"><em>psCompileTarget</em> = <code>EPST_PS_1_1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#a913671e32f20f13e51336bfbe20a82a3">E_GPU_SHADING_LANGUAGE</a>&#160;</td>
          <td class="paramname"><em>shadingLang</em> = <code>EGSL_DEFAULT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>convenience function for use without geometry shaders </p>

<p>Definition at line <a class="el" href="_i_g_p_u_programming_services_8h_source.html#l00358">358</a> of file <a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a>.</p>

<p>References <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#aeca8039e37e386b1e203cfa38338b848">addHighLevelShaderMaterialFromFiles()</a>, <a class="el" href="_e_shader_types_8h_source.html#l00074">irr::video::EGST_GS_4_0</a>, <a class="el" href="_e_primitive_types_8h_source.html#l00030">irr::scene::EPT_TRIANGLE_STRIP</a>, and <a class="el" href="_e_primitive_types_8h_source.html#l00037">irr::scene::EPT_TRIANGLES</a>.</p>

</div>
</div>
<a class="anchor" id="af7c7515773d4be33e1c66b8e3b65c293"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addShaderMaterial" ref="af7c7515773d4be33e1c66b8e3b65c293" args="(const c8 *vertexShaderProgram=0, const c8 *pixelShaderProgram=0, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addShaderMaterial </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderProgram</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderProgram</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a new ASM shader material renderer to the VideoDriver. </p>
<p>Note that it is a good idea to call <a class="el" href="classirr_1_1video_1_1_i_video_driver.html#adde468368b77441ada246e1603da4f47" title="Queries the features of the driver.">IVideoDriver::queryFeature()</a> in advance to check if the <a class="el" href="classirr_1_1video_1_1_i_video_driver.html" title="Interface to driver which is able to perform 2d and 3d graphics functions.">IVideoDriver</a> supports the vertex and/or pixel shader version your are using.</p>
<p>The material is added to the VideoDriver like with <a class="el" href="classirr_1_1video_1_1_i_video_driver.html#a0dfc3a7168f3a73a6f4323b579f03ff6" title="Adds a new material renderer to the video device.">IVideoDriver::addMaterialRenderer()</a> and can be used like it had been added with that method. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vertexShaderProgram</td><td>String containing the source of the vertex shader program. This can be 0 if no vertex program shall be used.</td></tr>
  </table>
  </dd>
</dl>
<p>For DX8 programs, the will always input registers look like this: v0: position, v1: normal, v2: color, v3: texture cooridnates, v4: texture coordinates 2 if available.</p>
<p>For DX9 programs, you can manually set the registers using the dcl_ statements. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pixelShaderProgram</td><td>String containing the source of the pixel shader program. This can be 0 if you don't want to use a pixel shader. </td></tr>
    <tr><td class="paramname">callback</td><td>Pointer to an implementation of <a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html" title="Interface making it possible to set constants for gpu programs every frame.">IShaderConstantSetCallBack</a> in which you can set the needed vertex and pixel shader program constants. Set this to 0 if you don't need this. </td></tr>
    <tr><td class="paramname">baseMaterial</td><td>Base material which renderstates will be used to shade the material. </td></tr>
    <tr><td class="paramname">userData</td><td>a user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same callback method for multiple materials and distinguish between them during the call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the number of the material type which can be set in <a class="el" href="classirr_1_1video_1_1_s_material.html#a8cb63ab4b49ae1c61fbca8353e6b2f8a" title="Type of the material. Specifies how everything is blended together.">SMaterial::MaterialType</a> to use the renderer. -1 is returned if an error occured. -1 is returned for example if a vertex or pixel shader program could not be compiled, the error strings are then printed out into the error log, and can be catched with a custom event receiver. </dd></dl>

</div>
</div>
<a class="anchor" id="a3d525d13fe863dc4f06af01eb44ea9e6"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addShaderMaterialFromFiles" ref="a3d525d13fe863dc4f06af01eb44ea9e6" args="(io::IReadFile *vertexShaderProgram, io::IReadFile *pixelShaderProgram, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addShaderMaterialFromFiles </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *&#160;</td>
          <td class="paramname"><em>vertexShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1io_1_1_i_read_file.html">io::IReadFile</a> *&#160;</td>
          <td class="paramname"><em>pixelShaderProgram</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Like <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293" title="Adds a new ASM shader material renderer to the VideoDriver.">IGPUProgrammingServices::addShaderMaterial()</a>, but loads from files. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vertexShaderProgram</td><td>Text file containing the source of the vertex shader program. Set to 0 if no shader shall be created. </td></tr>
    <tr><td class="paramname">pixelShaderProgram</td><td>Text file containing the source of the pixel shader program. Set to 0 if no shader shall be created. </td></tr>
    <tr><td class="paramname">callback</td><td>Pointer to an IShaderConstantSetCallback object to which the OnSetConstants function is called. </td></tr>
    <tr><td class="paramname">baseMaterial</td><td>baseMaterial </td></tr>
    <tr><td class="paramname">userData</td><td>a user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same callback method for multiple materials and distinguish between them during the call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the number of the material type which can be set in <a class="el" href="classirr_1_1video_1_1_s_material.html#a8cb63ab4b49ae1c61fbca8353e6b2f8a" title="Type of the material. Specifies how everything is blended together.">SMaterial::MaterialType</a> to use the renderer. -1 is returned if an error occured. -1 is returned for example if a vertex or pixel shader program could not be compiled, the error strings are then printed out into the error log, and can be catched with a custom event receiver. </dd></dl>

</div>
</div>
<a class="anchor" id="a46042ab1425d6c20f5d148febd7d9f00"></a><!-- doxytag: member="irr::video::IGPUProgrammingServices::addShaderMaterialFromFiles" ref="a46042ab1425d6c20f5d148febd7d9f00" args="(const io::path &amp;vertexShaderProgramFileName, const io::path &amp;pixelShaderProgramFileName, IShaderConstantSetCallBack *callback=0, E_MATERIAL_TYPE baseMaterial=video::EMT_SOLID, s32 userData=0)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::video::IGPUProgrammingServices::addShaderMaterialFromFiles </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>vertexShaderProgramFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceirr_1_1io.html#ab1bdc45edb3f94d8319c02bc0f840ee1">io::path</a> &amp;&#160;</td>
          <td class="paramname"><em>pixelShaderProgramFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html">IShaderConstantSetCallBack</a> *&#160;</td>
          <td class="paramname"><em>callback</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr_1_1video.html#ac8e9b6c66f7cebabd1a6d30cbc5430f1">E_MATERIAL_TYPE</a>&#160;</td>
          <td class="paramname"><em>baseMaterial</em> = <code>video::EMT_SOLID</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a>&#160;</td>
          <td class="paramname"><em>userData</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Like <a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html#af7c7515773d4be33e1c66b8e3b65c293" title="Adds a new ASM shader material renderer to the VideoDriver.">IGPUProgrammingServices::addShaderMaterial()</a>, but loads from files. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vertexShaderProgramFileName</td><td>Text file name containing the source of the vertex shader program. Set to 0 if no shader shall be created. </td></tr>
    <tr><td class="paramname">pixelShaderProgramFileName</td><td>Text file name containing the source of the pixel shader program. Set to 0 if no shader shall be created. </td></tr>
    <tr><td class="paramname">callback</td><td>Pointer to an IShaderConstantSetCallback object on which the OnSetConstants function is called. </td></tr>
    <tr><td class="paramname">baseMaterial</td><td>baseMaterial </td></tr>
    <tr><td class="paramname">userData</td><td>a user data int. This int can be set to any value and will be set as parameter in the callback method when calling OnSetConstants(). In this way it is easily possible to use the same callback method for multiple materials and distinguish between them during the call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the number of the material type which can be set in <a class="el" href="classirr_1_1video_1_1_s_material.html#a8cb63ab4b49ae1c61fbca8353e6b2f8a" title="Type of the material. Specifies how everything is blended together.">SMaterial::MaterialType</a> to use the renderer. -1 is returned if an error occured. -1 is returned for example if a vertex or pixel shader program could not be compiled, the error strings are then printed out into the error log, and can be catched with a custom event receiver. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_i_g_p_u_programming_services_8h_source.html">IGPUProgrammingServices.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceirr.html">irr</a>      </li>
      <li class="navelem"><a class="el" href="namespaceirr_1_1video.html">video</a>      </li>
      <li class="navelem"><a class="el" href="classirr_1_1video_1_1_i_g_p_u_programming_services.html">IGPUProgrammingServices</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht 
Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Tue Jan 19 2016 16:08:55 for Irrlicht 3D Engine by
<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
